package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.StrategyContent;
import cn.wolfcode.trip.base.domain.StrategyDetail;
import cn.wolfcode.trip.base.query.SearchQueryObject;
import cn.wolfcode.trip.base.query.TravelDetailQueryObject;
import com.github.pagehelper.PageInfo;

public interface IStrategyDetailService {
    /**
     * 分页
     * @param qo
     * @return
     */
    PageInfo query(TravelDetailQueryObject qo);

    /**
     * 新增和编辑
     * @param strategyDetail
     */
    void saveOrUpdate(StrategyDetail strategyDetail);


    StrategyContent getContentById(Long id);


    StrategyDetail getById(Long id);

    /**
     * 全局搜索
     * @param qo
     * @return
     */
    PageInfo globalSearch(SearchQueryObject qo);

    /**
     * 各类型查询条数搜索
     * @param qo
     * @return
     */
    int globalNumberSearch(SearchQueryObject qo);

    //点击浏览数量
    void updateBrowseNum(StrategyDetail strategyDetail);
}
